package com.yycx.module.bus.client.entity.hy;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.yycx.common.mybatis.base.entity.AbstractEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.yycx.common.mybatis.annotation.TableAlias;
/**
 * 客户回款
 *
 * @author flyme
 * @date 2023-10-30
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("bus_hyorder_custom_return")
@TableAlias("bhcr")
@ApiModel(value="BusHyorderCustomReturn对象", description="客户回款")
public class BusHyorderCustomReturn extends AbstractEntity {

private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "returnId", type = IdType.ASSIGN_ID)
    private Long returnId;

    @ApiModelProperty(value = "订单ID")
    private String orderId;

    @ApiModelProperty(value = "订单明细ID")
    private String orderDetailsId;

    @ApiModelProperty(value = "账套ID")
    private Long companyId;

    @ApiModelProperty(value = "部门ID")
    private Long deptId;

    @ApiModelProperty(value = "客户ID")
    private Long customId;

    @ApiModelProperty(value = "回款金额")
    private BigDecimal returnAmount;

    @ApiModelProperty(value = "回款日期")
    private Date returnDate;

    @ApiModelProperty(value = "认款日期")
    private String renkuanDate;

    @ApiModelProperty(value = "回款数量")
    private BigDecimal returnNum;

    @ApiModelProperty(value = "回款类型#1全款 2预付款 3资信回款")
    private Integer returnType;

    @ApiModelProperty(value = "审批状态")
    private Integer returnState;

    @ApiModelProperty(value = "收款账户")
    private Long bankId;

    @ApiModelProperty(value = "回款银行")
    private String returnBank;

    @ApiModelProperty(value = "回款账户")
    private String returnBankNo;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "回款单ID")
    private Long paymentId;

}
